#include "mystdio.h"
#include "mystring.h"
#include <string.h>
#include <unistd.h>

int main()
{
    MyFile *pf = MyFopen("log.txt","a");
    //const char *msg = "MyFopen and MyFwrite";
    const char *msg = "MyFopen and MyFwrite\n";
    int cnt = 5;
    while(cnt--)
    {
        MyFwrite(msg,1,strlen(msg),pf);
        //sleep(1);
    }
    MyFclose(pf);
    printf("strlen:%d\n",mystrlen(msg));

    return 0;
}
